idf_component_register(
    SRCS "src/audio_malloc.c"
    INCLUDE_DIRS "include"
    PRIV_REQUIRES
    driver
    usb_stream
    usb_cam
    espressif__button
    lvgl_wifi_connect
    esp_jpeg
    bsp
    main
)
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
target_link_libraries(${COMPONENT_LIB} INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/libs/${CONFIG_IDF_TARGET}/libesp_codec.a")
target_link_libraries(${COMPONENT_LIB} INTERFACE "-u audio_free -u audio_calloc_inner -u audio_calloc")
